package com.oauth2.provider.controller;

import java.util.Arrays;
import java.util.List;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("user")
public class UserController {
	
/*	@Autowired
	private ApplicationContext context;
	
	@PostConstruct
	public void printInstenace() {
		List<String> asList = Arrays.asList(context.getBeanDefinitionNames());
		asList.forEach(System.out::println);
	}*/
	
	@RequestMapping("/add")
	@ResponseBody
	public String userAdd() {
		return "ahahhahahahah";
	}
	
	
	

}
